﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SelectReceiver.aspx.cs" Inherits="Common_SelectReceiver" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script type="text/javascript">
        function getReceiver() {
            opener.parent.frames['mainFrame'].document.all.HiddenReceiver.value = document.getElementById("HiddenTOReceiver").value;
            opener.parent.frames['mainFrame'].check();
            // window.opener.location.reload();
            self.close();
        }
        function NoReceiver() {
            alert('您还没有选择收件人！');
        }
      
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <table width="100%">
        <tr>
            <td>
            <div class="queryDiv1">
            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="divFrameHead">
                        <span class="querytextCss">
                            <%=Resources.Resource.SelectReceiver%></span>
                    </td>
                </tr>
                <tr>
                    <td class="submitborder" style="padding-top: 15px; padding-bottom: 15px;">
                        <table style="margin-bottom: 10px;" width="95%" border="0" align="center" cellpadding="0"
                            cellspacing="0">
                            <tr>
                                <td class="submitborder4">
                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                            <td class="submitFieldbg" style=" width:30%">
                                                <%= Resources.Resource.SelectReceiver%><%--选择联系人--%>
                                            </td>
                                            <td align="left" style=" width:20%">
                                               <asp:TextBox ID="TextBoxUser" runat="server" Height="100%"></asp:TextBox>
                                            </td>
                                            <td >
                                            <div style=" margin-left:10px">
                                                 <asp:Button ID="ButtonSearch" runat="server" Text="查询" OnClick="ButtonSearch_Click" />
                &nbsp;&nbsp;<asp:Button ID="ButtonALL" runat="server" Text="全部" OnClick="ButtonALL_Click"
                    Visible="false" />
                    </div>
                                            </td>
                                           
                                        </tr> 
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
            </td>
        </tr>
        <tr>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <IMC:GridView ID="GridViewReceiverSelect" runat="server" AutoGenerateColumns="False"
                            OnRowDataBound="GridViewReceiverSelect_RowDataBound" AllowPaging="True" PageSize="10"
                            OnPageIndexChanging="GridViewReceiverSelect_PageIndexChanging">
                            <Columns>
                                <asp:TemplateField HeaderText="<%$ Resources:Resource,Choose %>" >
                                    <ItemTemplate>
                                        <asp:CheckBox ID="checkuser" runat="server"></asp:CheckBox>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:TemplateField>
                                <asp:BoundField DataField="UserName" HeaderText="<%$ Resources:Resource,Receiver %>">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                            </Columns>
                        </IMC:GridView>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </td>
        </tr>
        <tr>
            <td>
                <table align="center" width="30%">
                    <tr>
                        <td width="30%">
                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                <ContentTemplate>
                                    <asp:CheckBox ID="CheckALL" runat="server" Text="全选" AutoPostBack="True" OnCheckedChanged="CheckALL_CheckedChanged" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                        <td width="30%">
                            <asp:Button ID="ButtonGO" runat="server" Text="确定" OnClick="ButtonGO_Click" />
                        </td>
                        <td width="30%">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <input id="HiddenTOReceiver" type="hidden" runat="server" />
    </form>
</body>
</html>
